<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>a页面 </title>
<script type="text/javascript" src="scripts/jquery/jquery-1.7.1.js"></script>
<script type="text/javascript">
function to(){  
    var getval ="valueTest";
    window.location.href="b.html?valus="+getval;  
} 
</script>

</head>
<body>
<button onclick="to()">传值</button>
</body>
</html>
